/**
 * config.js
 */

let host = "https://www.duohw.cn/mobile.php"
let fileHost = "https://voice.duohw.cn"
// let fu = wx.getStorageSync('userId')
let config = {
  // WX_ENV: "game", //当前环境 game, test
  CODE: {
    REQUESTSUCCESS: 200,
    REQUESTERROR: 404
  },
  SHARE: {
    title: '好看的人都在玩，点我开始，不要停！',
    path: '/pages/index/index?share=1&fu=' + wx.getStorageSync('userId'),
    imageUrl: '../image/share.jpg',

    titlePrize: '话费流量免费送，视频会员领不停。',
    pathPrize: '/pages/index/index?share=2&fu=' + wx.getStorageSync('userId'), //抽奖分享单独处理
    imagPrizeUrl: '../image/share_2.jpg',

    titleShop: '玩游戏领奖品，你想要的这里都有。',
    pathShop: '/pages/index/index?share=3&fu=' + wx.getStorageSync('userId'), //商城分享单独处理
    imagShopUrl: '../image/share_3.jpg',

    titleVoice: '下红包雨了，戳图抢红包，拼手气。',
    pathVoice: '/pages/index/index?share=5&fu=' + wx.getStorageSync('userId'), //商城分享单独处理
    imagVoiceUrl: '../image/share_5.jpg',

    titleDuobao: '推荐多好玩抽奖给你，来碰碰运气。',
    pathDuobao: '/pages/index/index?share=6&fu=' + wx.getStorageSync('userId'),
    imagDuobao: '../image/share.jpg',

    gyTitle: '你点一下，我捐一毛。有本事就把我捐破产！',
    gyPath: '/pages/index/index?share=1&fu=' + wx.getStorageSync('userId'),
    gyImageUrl: '../image/share_gy.png',
  },
  ENV: {
    uploadVoiceUrl: `${fileHost}`, //默认存在根目录，可根据需求改
    OSSAccessKeySecret: 'rEuyn9drqeLWTkxRMjM1Nv8c2EGtzS',
    OSSAccessKeyId: 'LTAIHfjxVSX14w5t',
    timeout: 87600 //这个是上传文件时Policy的失效时间
  },

  host,
  loginUrl: `${host}/program/login.html`,
  myinfoUrl: `${host}/program/myinfo`,
  gameListUrl: `${host}/program/lists.html`,
  tongJiUrl: `${host}/program/tj.html`,
  newGameListUrl: `${host}/program/lists.html`,
  bannerListUrl: `${host}/program/adv`,
  noticeMesgUrl: `${host}/program/msg`,
  detailInfoUrl: `${host}/program/detail.html`,
  activityListUrl: `${host}/program/notices`,
  updateUserInfoUrl: `${host}/program/update`,
  taskListUrl: `${host}/program/tasks`,
  signUrl: `${host}/program/sign`,
  lingquUrl: `${host}/program/lingqu`,
  recordShareUrl: `${host}/program/recordShare`,
  choujiangUrl: `${host}/program/choujiang`,
  jiangPinUrl: `${host}/program/jiangpin`,
  myPrizeUrl: `${host}/program/myPrize`,
  prizeSubmitUrl: `${host}/program/prizeSubmit`,
  allShopUrl: `${host}/mall/goods`,
  submitShopInfo: `${host}/mall/duihuan`,
  myShopUrl: `${host}/mall/mygoods`,
  quickAddReward: `${host}/program/ling7`,
  baseRedPack: `${host}/promotionRedpack/index.html`,
  grabRedPack: `${host}/promotionRedpack/grab.html`,
  grabRedPackNew: `${host}/promotionRedpack/grab1.html`,
  redPackList: `${host}/promotionRedpack/lists.html`,
  myRedPack: `${host}/promotionRedpack/myRedpack.html`,
  tixianUrl: `${host}/promotionRedpack/tixian.html`,
  sceneProUrl: `${host}/program/scenePrograms`,
  duobaoList: `${host}/treasure/lists`,
  duobaoDetail: `${host}/treasure/detail`,
  joinDBLists: `${host}/treasure/joinList`,
  excTicket: `${host}/treasure/exchangeTicket`,
  joinDB: `${host}/treasure/join`,
  myInfo: `${host}/treasure/myInfo`,
  cjRecord: `${host}/treasure/myJoin`,
  zjRecord: `${host}/treasure/myWin`,
  submitAddress: `${host}/treasure/submitAddress`,
  gyMyZhuLi: `${host}/program/myZhuli`,
  gyAllZhuLi: `${host}/program/allZhuli`,
  //不使用=======
  test: {
    HOST: {
      HTTP_DOMAIN: 'http://tm.xymens.com/',
      BASE_URL: 'http://tm.xymens.com/index.php',
      API_URL: 'http://tapi.xymens.com/index.php'
    }
  }
};

module.exports = config;